package com.metro.core;

import ch.qos.logback.core.net.SyslogOutputStream;
import org.junit.Test;

/**
 * Created by Administrator on 2017/8/30 0030.
 */
public class T {
    public static void main(String[] args) {
        System.out.println("com.adb.DDD.BBB".substring("com.adb.DDD.BBB".lastIndexOf(".")+1));
        System.out.println("com.adb.DDD.BBB".substring(0, "com.adb.DDD.BBB".lastIndexOf(".")));
    }
}
